package com.company;

import java.util.Scanner;

public class Main16 {
    public static void main(String[] args) {
        Scanner sr=new Scanner(System.in);
        System.out.println("输入一个三位数");
        String s=sr.next();
        int i;
        for (i=0;i<s.length();i++){
            if (s.charAt(i)==s.charAt(s.length()-1-i)){
               continue;
            } else {
                System.out.println("不是回文数");
                break;
        }
        }

        if(i==s.length())
        System.out.println("是回文数");
    }
}